package com.bgIntlgn.client.entity.warehourse;

import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

@Table(name = "storage_limits", constrain = "")
public class StorageLimit implements Bean {

	/**
	 * 库存量显示时用 Element.id
	 */
	@Field(name = "uid", type = "char(80)", constrain = " not null references element_subversions(uid) on update cascade on delete cascade")
	private String uid;

	/**
	 * 存量下限.
	 */
	@Field(name = "lower_limit", type = "int", constrain = "not null default 0")
	private Integer lowerLimit;

	/**
	 * 存量上限.
	 */
	@Field(name = "upper_limit", type = "int", constrain = "not null default 0")
	private Integer upperLimit;

	/**
	 * 保存期.ms值.
	 */
	@Field(name = "storage_period", type = "int8", constrain = "not null default 96400000000")
	private Long storagePeriod;

	/**
	 * 说明
	 */
	@Field(name = "comment", type = "char(80)", constrain = " ")
	private String comment;

	public String getUid() {
		return this.uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public Integer getLowerLimit() {
		return this.lowerLimit;
	}

	public void setLowerLimit(Integer lowerLimit) {
		this.lowerLimit = lowerLimit;
	}

	public Integer getUpperLimit() {
		return this.upperLimit;
	}

	public void setUpperLimit(Integer upperLimit) {
		this.upperLimit = upperLimit;
	}

	public Long getStoragePeriod() {
		return this.storagePeriod;
	}

	public void setStoragePeriod(Long storagePeriod) {
		this.storagePeriod = storagePeriod;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
}
